package com.harveyguo.nihonngo.model.mapper;


import com.harveyguo.nihonngo.model.dto.UserCreateDto;
import com.harveyguo.nihonngo.model.dto.UserDto;
import com.harveyguo.nihonngo.model.entity.User;
import com.harveyguo.nihonngo.model.vo.UserVo;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

@Mapper(componentModel = "spring")
@Component
public interface UserMapper {
    UserDto toDto(User user);
    UserVo toVo(UserDto userDto);

    User CreatUser(UserCreateDto userDto);


}
